<?php

namespace app\index\controller;

class Index
{
    public function index()
    {
        $fileName = root_path().'config'.DIRECTORY_SEPARATOR.'install.lock';
        if(!file_exists($fileName)){
            $url = url('install/index/index');
        }else{
            $url = url(get_app_map('admin').'/index/index', [], false);
        }
        return redirect($url);
    }
}